This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Dynamic loading of class libraries - Using an interface class ~Yoshi Asageroterings 5.Nov.02 02:12 PM a Web browser Domino Designer 6.0All Platforms
aka <<Early binding vs. late binding >>
Hi Bill,
You raised an interesting point I've long suffered from. Here's how I overcome it so far:
I'm using an interface class that describes services that concrete classes need to garrantee.
The following illustration is borrowed from Damien Katz excellent "DatabaseDesign" sample code in Notes.net Sandbox.
Say a "DbDesign" factory class contextually loads "xxxDbDesign" classes implementing "IDbDesign" contract interface. xxx stands for w16, w32, mac, solaris, etc...
in DbDesign: « Use "iDbDesign" ». DbDesign factory loads a single class i.o. many based on the operating system.
in xxxDbDesign: « Use "iDbDesign" ». Note all xxxDbDesign PRIVATE classes derive/inherit from PUBLIC iDbDesign.